---
title: "Delete Knowledge Base"
api: "DELETE labs.chonkie.ai/api/v1/knowledge/{knowledge_base_slug}"
description: "Permanently delete an entire knowledge base and all its contents"
---

Delete an entire knowledge base, including all files, vectors, and metadata. This operation is irreversible.

## Examples

<CodeGroup>

```python Python
import requests

kb_slug = "old-project-docs"
url = f"https://labs.chonkie.ai/api/v1/knowledge/{kb_slug}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.delete(url, headers=headers)
result = response.json()
print(result["message"])
```

```javascript JavaScript
const kbSlug = "old-project-docs";

const response = await fetch(
  `https://labs.chonkie.ai/api/v1/knowledge/${kbSlug}`,
  {
    method: "DELETE",
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
    },
  }
);

const result = await response.json();
console.log(result.message);
```

```bash cURL
curl -X DELETE \
  https://labs.chonkie.ai/api/v1/knowledge/old-project-docs \
  -H "Authorization: Bearer YOUR_API_KEY"
```

</CodeGroup>

## Request

#### Path Parameters

<ParamField path="knowledge_base_slug" type="string" required>
  The slug of the knowledge base to delete.
</ParamField>

## Response

#### Returns

<ResponseField name="message" type="string">
  Success message confirming deletion.
</ResponseField>
